package com.eascs.web.api.view.method;

import java.lang.reflect.Method;

import com.eascs.web.api.ApiMethodInvokeObject;

public class ApiMethodInvokeObjectSimpleView {

	private String methodName;

	private String description;

	private Method method;

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public ApiMethodInvokeObjectSimpleView(ApiMethodInvokeObject apiMethodInvokeObject) {
		super();
		this.methodName = apiMethodInvokeObject.getApiMethod().name();
		this.description = apiMethodInvokeObject.getApiMethod().description();
		this.method = apiMethodInvokeObject.getMethod();
	}

	@Override
	public String toString() {
		return "ApiMethodInvokeObjectSimpleView [methodName=" + methodName + ", description=" + description + ", method=" + method + "]";
	}

}
